The SimpleMenu Component > FSimpleMenu.removeItemAt()

 

FSimpleMenu.removeItemAt()

Availability

Flash Player 6.

Usage

sm_instance.removeItemAt (index)

Parameters

index - An integer specifying an item on the SimpleMenu.

Returns

Nothing.

Description

Removes the specified item from the SimpleMenu component. The item count is zero based.

Example

The following code removes the first and fourth items:

sm.removeItemAt(0);
sm.removeItemAt(3);

See also

FSimpleMenu.removeAll
FSimpleMenu.addItemAt